
const app = getApp();
const utils = require('../../../utils/util.js');

Page({
  data: {
    skin: "",
    beginTime:"",
    endTime: "",
    arr:[{
      date:'2022-02-01',
      dataArr:[[{
        name:'停电状态',
        title:'正常',
        color:'#33CC66'
      },{
        name:'缺水状态',
        title:'缺水',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      },{
        name:'甲烷状态',
        title:'越下限',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      }]]
    },{
      date:'2022-02-01',
      dataArr:[[{
        name:'停电状态',
        title:'正常',
        color:'#33CC66'
      },{
        name:'缺水状态',
        title:'缺水',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      },{
        name:'甲烷状态',
        title:'越下限',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      }]]
    },{
      date:'2022-02-01',
      dataArr:[[{
        name:'停电状态',
        title:'正常',
        color:'#33CC66'
      },{
        name:'缺水状态',
        title:'缺水',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      },{
        name:'甲烷状态',
        title:'越下限',
        color:'#E8564D'
      }],
      [{
        name:'温度传感器状态',
        title:'越上限',
        color:'#E8564D'
      }]]
    }]
  },
  
  onLoad() {
    const { skin } = app.globalData;
    this.setData({ skin });
  },

  handleBeginTimeChange(e) {
    this.setData({
      beginTime: e.detail
    })
  },

  handleEndTimeChange(e) {
    this.setData({
      endTime: e.detail
    })
  },

});